<?php if ($this->pageCount): ?>
<div class="pagination">
    <div class="results">
    Showing <?php echo $this->firstItemNumber; ?> to <?php echo $this->lastItemNumber; ?>
     of <?php echo $this->totalItemCount; ?>
    </div>
<div class="links">
<!-- First page link -->
<?php if (isset($this->previous)): ?>
  <a href="<?php echo $this->url. "?page=". $this->first . $this->partUrl; ?>">
    First
  </a> |
<?php else: ?>
  <span class="disabled">First</span> |
<?php endif; ?>

<!-- Previous page link -->
<?php if (isset($this->previous)): ?>
  <a href="<?php echo $this->url. "?page=". $this->previous . $this->partUrl; ?>">
    &lt; Previous
  </a> |
<?php else: ?>
  <span class="disabled">&lt; Previous</span> |
<?php endif; ?>

<!-- Numbered page links -->
<?php foreach ($this->pagesInRange as $page): ?>
  <?php if ($page != $this->current): ?>
    <a href="<?php echo $this->url. "?page=". $page . $this->partUrl; ?>">
        <?php echo $page; ?>
    </a> |
  <?php else: ?>
    <?php echo $page; ?> |
  <?php endif; ?>
<?php endforeach; ?>

<!-- Next page link -->
<?php if (isset($this->next)): ?>
  <a href="<?php echo $this->url. "?page=". $this->next . $this->partUrl; ?>">
    Next &gt;
  </a> |
<?php else: ?>
  <span class="disabled">Next &gt;</span> |
<?php endif; ?>

<!-- Last page link -->
<?php if (isset($this->next)): ?>
  <a href="<?php echo $this->url. "?page=". $this->last . $this->partUrl; ?>">
    Last
  </a>
<?php else: ?>
  <span class="disabled">Last</span>
<?php endif; ?>
</div>
</div>
<?php endif; ?>